/**
 * 可配置权限路由
 * @type { *[] }
 */
export const asyncRouterMap = {
  // 首页
  1: {
    id: 1,
    menuName: '首页',
    path: "/home",
    name: "home",
    icon: 'home',
    component: () => import('@/views/home/home.vue'),
    meta: {
      iconColor: '#35353F',
      title: "首页"
    },
  },
  // 管理模块
  2: {
    id: 2,
    menuName: '财务管理',
    path: "/financeManagement",
    name: "financeManagement",
    icon: 'Currency',
    meta: {
      iconColor: '#35353F',
      title: "财务管理"
    },
  },
  3: {
    id: 3,
    menuName: '财务数据中心',
    path: "/finance/dataCenter",
    name: "financeDataCenter",
    icon: 'finance',
    component: () => import('@/views/finance/dataCenter.vue'),
    meta: {
      title: "财务数据中心"
    },
  },

  16: {
    id: 16,
    menuName: '报表审核',
    path: "/finance/journaling",
    name: "financeJournaling",
    component: () => import('@/views/finance/journaling.vue'),
    meta: {
      isShowMenu: true,
      title: "报表审核"
    },
  },
  17: {
    id: 17,
    menuName: '文章审核',
    path: "/finance/journaling2",
    name: "financeJournaling2",
    component: () => import('@/views/finance/journaling2.vue'),
    meta: {
      isShowMenu: true,
      title: "文章审核"
    },
  },

  // 三务三资审核管理
  200: {
    id: 200,
    menuName: '三务三资审核管理',
    path: "/examine",
    name: "examine",
    icon: 'finance',
    meta: {
      iconColor: '#35353F',
      title: "三务三资审核管理"
    },
  },
  201: {
    id: 201,
    menuName: '镇级党务公开审核',
    path: "/examine/approval1",
    name: "examineApproval1",
    component: () => import('@/views/examine/approval1.vue'),
    meta: {
      title: "镇级党务公开审核",
      query: {
        type: 1
      },
    },
  },
  202: {
    id: 202,
    menuName: '镇级政务公开审核',
    path: "/examine/approval2",
    name: "examineApproval2",
    component: () => import('@/views/examine/approval2.vue'),

    meta: {
      title: "镇级政务公开审核",
      query: {
        type: 1
      },
    },
  },
  203: {
    id: 203,
    menuName: '镇级财务公开审核',
    path: "/examine/approval3",
    name: "examineApproval3",
    component: () => import('@/views/examine/approval3.vue'),
    meta: {
      title: "镇级财务公开审核"
    },
  },
  204: {
    id: 204,
    menuName: '党务公开审核',
    path: "/examine/approval4",
    name: "examineApproval4",
    component: () => import('@/views/examine/approval4.vue'),
    meta: {
      title: "党务公开审核"
    },
  },
  205: {
    id: 205,
    menuName: '村务公开审核',
    path: "/examine/approval5",
    name: "examineApproval5",
    component: () => import('@/views/examine/approval5.vue'),
    meta: {
      title: "村务公开审核"
    },
  },
  206: {
    id: 206,
    menuName: '财务公开审核',
    path: "/examine/approval6",
    name: "examineApproval6",
    component: () => import('@/views/examine/approval6.vue'),
    meta: {
      title: "财务公开审核"
    },
  },
  207: {
    id: 207,
    menuName: '资金管理审核',
    path: "/examine/approval7",
    name: "examineApproval7",
    component: () => import('@/views/examine/approval7.vue'),
    meta: {
      title: "资金管理审核"
    },
  },
  208: {
    id: 208,
    menuName: '资产管理审核',
    path: "/examine/approval8",
    name: "examineApproval8",
    component: () => import('@/views/examine/approval8.vue'),
    meta: {
      title: "资产管理审核"
    },
  },
  209: {
    id: 209,
    menuName: '资源管理审核',
    path: "/examine/approval9",
    name: "examineApproval9",
    component: () => import('@/views/examine/approval9.vue'),
    meta: {
      title: "资源管理审核"
    },
  },


  // 镇级三务公开
  210: {
    id: 210,
    menuName: '镇级三务公开',
    path: "/release/town",
    name: "releaseTown",
    icon: 'finance',
    meta: {
      iconColor: '#35353F',
      title: "镇级三务公开"
    },
  },
  211: {
    id: 211,
    menuName: '镇级党务公开',
    path: "/release/town/articleListAudit1",
    name: "townArticleListAudit1",
    component: () => import('@/views/release/town/articleListAudit1.vue'),
    meta: {
      title: "镇级党务公开"
    },
  },
  212: {
    id: 212,
    menuName: '镇级政务公开',
    path: "/release/town/articleListAudit2",
    name: "townArticleListAudit2",
    component: () => import('@/views/release/town/articleListAudit2.vue'),
    meta: {
      title: "镇级政务公开"
    },
  },
  213: {
    id: 213,
    menuName: '镇级财务公开',
    path: "/release/town/reimbursement4",
    name: "townReimbursement4",
    component: () => import('@/views/release/town/reimbursement4.vue'),
    meta: {
      title: "镇级财务公开"
    },
  },


  // 三务公开
  214: {
    id: 214,
    menuName: '三务公开',
    path: "/release/village",
    name: "releaseVillage",
    icon: 'finance',
    meta: {
      iconColor: '#35353F',
      title: "三务公开"
    },
  },
  215: {
    id: 215,
    menuName: '党务公开',
    path: "/release/village/articleListAudit3",
    name: "villageArticleListAudit3",
    component: () => import('@/views/release/village/articleListAudit3.vue'),
    meta: {
      title: "党务公开"
    },
  },
  216: {
    id: 216,
    menuName: '村务公开',
    path: "/release/village/articleListAudit4",
    name: "villageArticleListAudit4",
    component: () => import('@/views/release/village/articleListAudit4.vue'),
    meta: {
      title: "村务公开"
    },
  },
  217: {
    id: 217,
    menuName: '财务公开',
    path: "/release/village/reimbursement5",
    name: "villageReimbursement5",
    component: () => import('@/views/release/village/reimbursement5.vue'),
    meta: {
      title: "财务公开"
    },
  },


  // 三资管理
  218: {
    id: 218,
    menuName: '三资管理',
    path: "/release/resource",
    name: "releaseResource",
    icon: 'tableReport',
    meta: {
      iconColor: '#35353F',
      title: "三资管理"
    },
  },
  219: {
    id: 219,
    menuName: '资金管理',
    path: "/release/resource/reimbursement1",
    name: "resourceReimbursement1",
    component: () => import('@/views/release/resource/reimbursement1.vue'),
    meta: {
      title: "资金管理"
    },
  },
  220: {
    id: 220,
    menuName: '资源管理',
    path: "/release/resource/reimbursement2",
    name: "resourceReimbursement2",
    component: () => import('@/views/release/resource/reimbursement2.vue'),
    meta: {
      title: "资源管理"
    },
  },
  221: {
    id: 221,
    menuName: '资产管理',
    path: "/release/resource/reimbursement3",
    name: "resourceReimbursement3",
    component: () => import('@/views/release/resource/reimbursement3.vue'),
    meta: {
      title: "资产管理"
    },
  },


  // 纪检管理
  222: {
    id: 222,
    menuName: '纪检管理',
    path: "/contentManagement",
    name: "contentManagement",
    icon: 'tableReport',
    meta: {
      iconColor: '#35353F',
      title: "纪检管理"
    },
  },
  223: {
    id: 223,
    menuName: '文章审核页',
    path: "/contentManagement/newsJournaling",
    name: "contentManagementNewsJournaling",
    component: () => import('@/views/contentManagement/newsJournaling.vue'),
    meta: {
      isShowMenu: true,
      title: "文章审核页"
    },
  },
  224: {
    id: 224,
    menuName: '举报处理',
    path: "/contentManagement/messageManager",
    name: "contentManagementMessageManager",
    component: () => import('@/views/contentManagement/messageManager.vue'),
    meta: {
      iconColor: '#35353F',
      title: "举报处理"
    },
  },


  // 系统设置
  7: {
    id: 7,
    menuName: '系统设置',
    path: "/systemSettings",
    name: "systemSettings",
    icon: 'config',
    meta: {
      iconColor: '#35353F',
      title: "系统设置"
    },
  },
  8: {
    id: 8,
    menuName: '用户管理',
    path: "/systemSettings/user",
    name: "systemSettingsUser",
    component: () => import('@/views/systemSettings/user.vue'),
    meta: {
      title: "用户管理"
    },
  },
  9: {
    id: 9,
    menuName: '村/社区管理',
    path: "/systemSettings/community",
    name: "systemSettingsCommunity",
    component: () => import('@/views/systemSettings/community.vue'),
    meta: {
      title: "村/社区管理"
    },
  },
  10: {
    id: 10,
    menuName: '角色管理',
    path: "/systemSettings/role",
    name: "systemSettingsRole",
    component: () => import('@/views/systemSettings/role.vue'),
    meta: {
      title: "角色管理"
    },
  },
  11: {
    id: 11,
    menuName: '系统类型',
    path: "/systemSettings/newsType",
    name: "systemSettingsNewsType",
    component: () => import('@/views/systemSettings/newsType.vue'),
    meta: {
      title: "系统类型"
    },
  },
};


/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [{
  path: "/index",
  name: "index",
  component: () => import('@/views/index.vue'),
  children: []
},
{
  path: '/login',
  name: 'login',
  component: () => import('@/views/user/login')
},
{
  path: '/register',
  name: 'register',
  component: () => import('@/views/user/register')
},
{
  path: '/404',
  name: '404',
  component: () => import('@/views/user/404')
},
  // {
  //   path: '/',
  //   redirect: '/login'
  // }
]


/**
 * 公众号h5页面
 * @type { *[] }
 */
// export const constantAppRouterMap = [
//   {
//     menuName: '登录',
//     path: "/loginPage",
//     name: "loginPage",
//     component: () => import('@/views/webApp/loginPage.vue'),
//     meta: {
//       title: "登录"
//     },
//   },
//   {
//     menuName: '个人中心',
//     path: "/centerPage",
//     name: "centerPage",
//     component: () => import('@/views/webApp/centerPage.vue'),
//     meta: {
//       title: "个人中心"
//     },
//   },
//   {
//     menuName: '财务公开列表',
//     path: "/financeDisclosurePage",
//     name: "financeDisclosurePage",
//     component: () => import('@/views/webApp/financeDisclosurePage.vue'),
//     meta: {
//       title: "财务公开列表"
//     },
//   },
//   {
//     menuName: '财务审核列表',
//     path: "/financialreviewPage",
//     name: "financialreviewPage",
//     component: () => import('@/views/webApp/financialreviewPage.vue'),
//     meta: {
//       title: "财务审核列表"
//     },
//   },
//   {
//     menuName: '村社财务列表',
//     path: "/financialCommunityPage",
//     name: "financialCommunityPage",
//     component: () => import('@/views/webApp/financialCommunityPage.vue'),
//     meta: {
//       title: "村社财务列表"
//     },
//   },
//   {
//     menuName: '财务报表',
//     path: "/financeMessagePage",
//     name: "financeMessagePage",
//     component: () => import('@/views/webApp/financeMessagePage.vue'),
//     meta: {
//       title: "财务报表"
//     },
//   },
//   {
//     menuName: '首页',
//     path: "/homePage",
//     name: "homePage",
//     component: () => import('@/views/webApp/homePage.vue'),
//     meta: {
//       title: "首页"
//     },
//   },
//   {
//     menuName: '个人信息',
//     path: "/userInfoPage",
//     name: "userInfoPage",
//     component: () => import('@/views/webApp/userInfoPage.vue'),
//     meta: {
//       title: "个人信息"
//     },
//   },
//   {
//     menuName: '修改密码',
//     path: "/passwordPage",
//     name: "passwordPage",
//     component: () => import('@/views/webApp/passwordPage.vue'),
//     meta: {
//       title: "修改密码"
//     },
//   },
//   {
//     path: '/',
//     redirect: '/homePage'
//   }
// ]